Skip to main content

Run CLI

Run CLI (v1.0.0)

Choose a CLI and custom arguments to run

View Source

Inputs:

Name: Use Custom CLI Path? 

Type: boolean

Tooltip:

Specify whether to use a custom CLI path
Name: CLI 

Type: string

Tooltip:

CLI to run
Name: Custom CLI Path 

Type: string

Tooltip:

Specify the path to the CLI to run
Name: Does Command Create Output File? 

Type: boolean

Tooltip:

Toggle this on if the command creates an output file.
Name: Output File Path 

Type: string

Tooltip:


This path can be accessed using ${outputFilePath} in the "CLI Arguments" input below.

\n
${cacheDir} is a special variable that points to the Tdarr worker cache directory.

\n
${fileName} is a special variable for the filename without extension.

\nExample\n
${cacheDir}/${fileName}.{{{args.inputFileObj.container}}}

Name: CLI Arguments 

Type: string

Tooltip:

Specify arguments to pass to the CLI.
Normal variable templating with {{{}}} applies but ${outputFilePath} is a special
variable from the "Output File Path" input above.

\nExample\n
-o "${outputFilePath}" "{{{args.inputFileObj._id}}}"

Name: Output File Becomes Working File? 

Type: boolean

Tooltip:

Toggle this on to make the output file become the working file for the next plugin.

Outputs:

1: Continue to next plugin